package org.xs.big_event.service;

import jakarta.servlet.http.HttpServletRequest;
import org.springframework.web.multipart.MultipartFile;
import org.xs.big_event.dao.user.BaseUser;
import org.xs.big_event.utils.R;

import java.util.Map;

public interface IUserService {
    public R login(String username, String password);
    public R register(String username, String password);
    public R logout(HttpServletRequest request);

    public R info(HttpServletRequest request);

    public R update(BaseUser user);

    public R updateAvatar(MultipartFile file);

    R getAvatar();

    public R updatePassword(Map<String, String> params);
}
